from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import UserChatRoomViewSet, UserChatMessageViewSet, UserViewSet

router = DefaultRouter()
router.register(r'rooms', UserChatRoomViewSet, basename='chatroom')
router.register(r'messages', UserChatMessageViewSet, basename='chatmessage')
router.register(r'users', UserViewSet, basename='user')

app_name = 'company_chat'

urlpatterns = [
    path('api/', include(router.urls)),
]